package com.yc.class_attendance.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 项目名：智慧课牌
 * Created by ${LiuShaoQing} on 2017/9/6.
 * Time: 2017/9/6 13:36
 */
@Entity
public class Record {
    @Id(autoincrement = true)
    private Long id;
    //物理卡号
    private String wlkh;
    //班级id
    private String classId;
    //课程id
    private String courseId;
    //签到时间
    private String time;
    //签到状态(1-正常 2-迟到4-缺勤 )
    private String inResult;
    //签退状态(1-正常  3-早退) -1默认
    private String outResult;
    //考勤结果1-正常 2-迟到 3-早退 4-缺勤 5-迟到早退  //如果有签退 没有操作 没有记录，4，没有签到 4
    private String attendResult;
    //设备号
    private String termCode;
    //签到签退标识0-签到，1-签退  -1 缺勤
    private String lg;
    private  String  UserId;
    private String satrtTime;//签到开始时间
    private String endTime;//签到结束时间
    private String tag;// "in" 签到，"out" 签退
    private boolean isUpload;//是否上传

    public String getUserId() {
        return this.UserId;
    }
    public void setUserId(String UserId) {
        this.UserId = UserId;
    }
    public String getLg() {
        return this.lg;
    }
    public void setLg(String lg) {
        this.lg = lg;
    }
    public String getTermCode() {
        return this.termCode;
    }
    public void setTermCode(String termCode) {
        this.termCode = termCode;
    }
    public String getAttendResult() {
        return this.attendResult;
    }
    public void setAttendResult(String attendResult) {
        this.attendResult = attendResult;
    }
    public String getOutResult() {
        return this.outResult;
    }
    public void setOutResult(String outResult) {
        this.outResult = outResult;
    }
    public String getInResult() {
        return this.inResult;
    }
    public void setInResult(String inResult) {
        this.inResult = inResult;
    }
    public String getTime() {
        return this.time;
    }
    public void setTime(String time) {
        this.time = time;
    }
    public String getCourseId() {
        return this.courseId;
    }
    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }
    public String getClassId() {
        return this.classId;
    }
    public void setClassId(String classId) {
        this.classId = classId;
    }
    public String getWlkh() {
        return this.wlkh;
    }
    public void setWlkh(String wlkh) {
        this.wlkh = wlkh;
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    @Generated(hash = 846531664)
    public Record(Long id, String wlkh, String classId, String courseId,
            String time, String inResult, String outResult, String attendResult,
            String termCode, String lg, String UserId, String satrtTime,
            String endTime, String tag, boolean isUpload) {
        this.id = id;
        this.wlkh = wlkh;
        this.classId = classId;
        this.courseId = courseId;
        this.time = time;
        this.inResult = inResult;
        this.outResult = outResult;
        this.attendResult = attendResult;
        this.termCode = termCode;
        this.lg = lg;
        this.UserId = UserId;
        this.satrtTime = satrtTime;
        this.endTime = endTime;
        this.tag = tag;
        this.isUpload = isUpload;
    }
    @Generated(hash = 477726293)
    public Record() {
    }


    public String getEndTime() {
        return this.endTime;
    }
    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }
    public String getSatrtTime() {
        return this.satrtTime;
    }
    public void setSatrtTime(String satrtTime) {
        this.satrtTime = satrtTime;
    }

    @Override
    public String toString() {
        return "Record{" +
                "id=" + id +
                ", wlkh='" + wlkh + '\'' +
                ", classId='" + classId + '\'' +
                ", courseId='" + courseId + '\'' +
                ", time='" + time + '\'' +
                ", inResult='" + inResult + '\'' +
                ", outResult='" + outResult + '\'' +
                ", attendResult='" + attendResult + '\'' +
                ", termCode='" + termCode + '\'' +
                ", lg='" + lg + '\'' +
                ", UserId='" + UserId + '\'' +
                ", satrtTime='" + satrtTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", tag='" + tag + '\'' +
                ", isUpload=" + isUpload +
                '}';
    }

    public boolean getIsUpload() {
        return this.isUpload;
    }
    public void setIsUpload(boolean isUpload) {
        this.isUpload = isUpload;
    }
    public String getTag() {
        return this.tag;
    }
    public void setTag(String tag) {
        this.tag = tag;
    }
}
